import com.company.userController.UserController;
import com.company.userController.UserController2;
import com.company.userController.UserController3;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {

    public static void main(String[] args) {


        ApplicationContext context=new ClassPathXmlApplicationContext("spring-config.xml");
        UserController2 userController2=(UserController2) context.getBean("userController2");
        userController2.sayHi();



        UserController3 userController3=(UserController3) context.getBean("userController3");
        userController3.sayHi();
    }

}
